home *** CD-ROM | disk | FTP | other *** search
- Path: news.syd.connect.com.au!news
- From: Bryan Russell <bryan-r@mis.scitec.com.au>
- Newsgroups: comp.lang.c,comp.lang.c++,alt.msdos.programmer,comp.os.msdos.programmer
- Subject: Re: Please help (640x480 and linear addressing)
- Date: Wed, 21 Feb 1996 14:20:42 +1000
- Organization: Connect.com.au P/L, Sydney, Australia
- Message-ID: <312A9D9A.262F@mis.scitec.com.au>
- References: <4g0god$ntl@news.voicenet.com>
- NNTP-Posting-Host: fgate.scitec.com.au
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b5 (Win95; I)
-
- Artem Koutchine wrote:
- >
- > Hello !
- >
- > I started using Watcom C/C++ (ver 10.5) about a month ago so
- > i am not really familiar with using protected mode and all the other
- > new things.
- > What i need is to know how to map all video memory in 640x480
- > VESA MODE into the linear addressing space.
- > I have very littel idea how to do that, what i know that i need
- > to create a separate selector for it, but do i create it ? and how do
- > i use it to access that memory ? and is there a simplier way to do that ?
- > I would really appriciate some sample code.
- >
- > Please, help me, i am stuck with my work.
- >
- > Thanks.
- >
- > Artem
- >
- > PS: okay, gotta go cook beef stroganoff :))
-
- If you are using the DOS4GW extender then you simply start writing at address
- 0xa0000, e.g.
-
- char *screen = 0xa0000;
- *screen = colour
-
- This will give you access to all 64000 bytes of MODE 13h screen space but unless you
- are planning to code for the VBE 2.0 specs which support linear addressing of the vga
- memory, you will need to change banks at every 64k boundry (that's 64k bytes not
- 64000 bytes). You do this by using one of the vesa int 10 functions. Information can
- be found on this on x2ftp.oulu.fi under the /pub/msdos/programming directory. If you
- have trouble with this I may be able to dig something up.
-
-
-
-
- --
- Bryan Russell Net : bryan-r@mis.scitec.com.au
-